<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<meta name="baidu-site-verification" content="JdMif0g2tL" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>angular</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script src="js/angular.min.js" charset="utf-8"></script>
</head>
<style type="text/css" media="screen">
	*{margin:0;padding: 0;font-size: 16px;outline: none;}
</style>
<body ng-app="myApp">
<!--将tpl.html文件内容链接div中-->
<div ng-controller="main" ng-include="tpl">
	
</div>

<script type="text/javascript">
	var app =angular.module('myApp', []);
	app.controller('main', ['$scope', function($scope){
		$scope.msg='second';
		$scope.tpl='tpl.html';
	}])
</script>
<script type="text/javascript">
	document.getElementsByTagName('html')[0].style.fontSize=window.screen.width/10+'px';
</script>
</body>
</html>
<!--应该12angular指令11 src动态绑定-->